package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.SetTimeZoneValue;

/**
 * @author Bright Lee
 */
public final class SetLocalTimeZoneStatement implements SqlSessionStatement, Statement {

    private int beginIndex;
    private int endIndex;
    private SetTimeZoneValue setTimeZoneValue;

    public SetLocalTimeZoneStatement(int beginIndex, SetTimeZoneValue setTimeZoneValue) {
        this.beginIndex = beginIndex;
        this.endIndex = setTimeZoneValue.getEndIndex();
        this.setTimeZoneValue = setTimeZoneValue;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SetTimeZoneValue getSetTimeZoneValue() {
        return setTimeZoneValue;
    }

}
